package com.qqtech.qquan.order.model;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.qqtech.core.common.util.StringUtil;
import com.qqtech.qquan.mall.enums.MallConst;

@SuppressWarnings("serial")
public class OrderItemVo extends OrderItem{
	/** 索引 **/
	private Integer index;
	/**供应商类型,1-外部供应商;2-本地供应商 **/
	private Integer supplierType;
	/**供应商名称**/
	private java.lang.String supplierName;
	/** 是否外部供应商订单:1-是;2-否*/
	private java.lang.Integer isExternal;
	/**
	 * 社区名称
	 */
	private java.lang.String communityName;
	
	public Integer getSupplierType() {
		return supplierType;
	}

	public void setSupplierType(Integer supplierType) {
		this.supplierType = supplierType;
	}

	public Integer getIndex() {
		return index;
	}

	public void setIndex(Integer index) {
		this.index = index;
	}
	
	public String getPathImg() {
		if (StringUtil.isBlank(this.getImg())) {
			return "";
		}
		return this.getImgHandleDomain() + this.getImg() + MallConst.IMG_SMALL;
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this,
				ToStringStyle.MULTI_LINE_STYLE);
	}

	public java.lang.String getSupplierName() {
		return supplierName;
	}

	public void setSupplierName(java.lang.String supplierName) {
		this.supplierName = supplierName;
	}

	public java.lang.Integer getIsExternal() {
		return isExternal;
	}

	public void setIsExternal(java.lang.Integer isExternal) {
		this.isExternal = isExternal;
	}

	public java.lang.String getCommunityName() {
		return communityName;
	}

	public void setCommunityName(java.lang.String communityName) {
		this.communityName = communityName;
	}
}